package ro.theneckmaster.usbSync;

import java.io.File;

public class MyFile {

	private String path;
	private String relativePath;
	private long modified;
	private long size;
	private boolean remove;
	
	public MyFile(String path, String relativaPath) {
		this.path = path;
		this.relativePath = relativaPath;
		loadFile();
	}
	
	public void loadFile() {
		File file = new File(this.path);
		modified = file.lastModified();
		size = file.length();
	}
	
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public long getModified() {
		return modified;
	}
	public void setModified(long modified) {
		this.modified = modified;
	}
	public long getSize() {
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}

	public boolean isRemove() {
		return remove;
	}

	public void setRemove(boolean remove) {
		this.remove = remove;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}
	
}
